<?php $t = TranslateForm::model(); ?>
<form id="langForm" method="get">
	<?php echo CHtml::dropdownList('lang', $t->getCurrentLanguage(), $t->getLanguageListData(), array('id'=>'selectLanguage')) ?>
</form>

<script type="text/javascript">
//<![CDATA[
$('#selectLanguage').change(function () {
	$('#langForm').submit();
});
//]]>
</script> 
